# Makefile
# GNU makefile for example particle pinning code
# Questions/comments to gruberja@gmail.com (Jason Gruber)

# compilers/flags
compiler = g++
flags = -O3 -ansi -I ../../include/
pcompiler = mpic++
pflags = -O3 -ansi -I ../../include/ -include mpi.h

# dependencies
core = ../../include/MMSP.hpp \
       ../../include/MMSP.utility.hpp \
       ../../include/MMSP.grid.hpp \
       ../../include/MMSP.scalar.hpp

# the program
pinning: pinning.cpp pinning.hpp $(core)
	$(compiler) $(flags) $< -o $@

parallel: pinning.cpp pinning.hpp $(core)
	$(pcompiler) $(pflags) $< -o $@

clean:
	rm -f pinning parallel
